import { request } from '@boeyo/portal';

/**
 * 图片上传
 */
export const uploadImage = (data: any) => {
  return request({
    url: '/common/upload',
    method: 'POST',
    data,
  });
};

/**
 * 保存音频
 * @param params
 * @returns
 */
export const saveConfig = (params: any) =>
  request({
    url: '/alarmPush/list',
    method: 'POST',
    params,
  });
